<?php $this->load->view('vheader')?>
<div class="widget-header">
    <h5>Detail Sales Order</h5>
</div>
<div class="widget-body">
	<div class="widget-main">
    	<?php
		$attribut = array('class' => 'form-search');
		echo form_open('transaksi/status_so/detail_so',$attribut);
		?>
        	<div class="row">
            	<div class="col-xs-12 col-sm-8">
                	<div class="input-group">
                    	<input type="text" name="key" class="form-control search-query" placeholder="Cari.." />
                        <span class="input-group-btn">
                        	<button type="submit" name="cari" class="btn btn-purple btn-sm">
                            	Search
                                <i class="icon-search icon-on-right bigger-110"></i>
                            </button>
                        </span>
                    </div>
                </div>
            </div>
        <?php
		echo form_close();
		?>
    </div>
</div>
<div class="widget-body">
    <div class="form-horizontal" role="form">
    	<br />
        <form class="form-search">
    	<div class="profile-user-info profile-user-info-striped">
	            <div class="profile-info-row">
                <div class="profile-info-name">No Sales Order</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo $ilc->soid;?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">No Faktur</div>
                <div class="profile-info-value">
                    <span class="editable"><?php if(!empty($ilc->nofaktur))echo $ilc->nofaktur; else echo "-";?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Kepada</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo $ilc->kepada;?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Untuk</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo $ilc->untuk;?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Sales</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo $ilc->nama_sales;?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Tanggal Order</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo date("d-m-Y",strtotime($ilc->tanggal));?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Jatuh Tempo</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo date("d-m-Y",strtotime($ilc->jatuh_tempo));?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Total 1</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo number_format($ilc->total_1,0,",",".");?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Potongan</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo number_format($ilc->potongan,0,",",".");?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Total 2</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo number_format($ilc->total_2,0,",",".");?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">PPn</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo number_format($ilc->ppn,0,",",".");?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Total Tagihan</div>
                <div class="profile-info-value">
                    <span class="editable"><?php echo number_format($ilc->total,0,",",".");?></span>
                </div>
            </div>
            <div class="profile-info-row">
                <div class="profile-info-name">Status</div>
                <div class="profile-info-value">
                	<?php
					 if($ilc->status == '1'){
						 $status = "Pending";
					 }else if($ilc->status == '2'){
						 $status = "Dikirim";
					 }else if($ilc->status == '2'){
						 $status = "Terkirim";
					 }					
					?>
                    <span class="editable"><?php echo $status;?></span>
                </div>
            </div>
        </div>
        <br />
    </div>
</div>
<?php $this->load->view('vfooter')?>